<%@ page pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/functions" prefix="fn"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt"%>
<%@ page trimDirectiveWhitespaces="true" %>
<fmt:setLocale value="zh_CN"/>
	<div class="shield-show">
		<table class="tab-list  shield-table-odd tablesAllCodeGen">
			<col width="60">
			<col width="">
			<col width="150">
			<col width="">
			<col width="55">
			<caption>符合搜索条件的表</caption>
		    <tr>
		        <th class="taCenter" >序号</th>
		        <th class="taLeft">表名</th>
		        <th class="taLeft">数据量</th>
		        <th class="taLeft">注释</th>
		    	<th class="taCenter">操作</th>
		    </tr>
		<c:forEach var="model" items="${list }" varStatus="var">
		    <tr class="datatr">
		        <td style="text-align: center;">${(pageBean.currentPage -1)*pageBean.pageSize+var.count }</td>
		        <td class="datatd">${model.tableName }</td>
		        <td class="datatd">${model.dataSize }</td>
		        <td class="datatd">${model.tableComments }</td>
		        <td class="taCenter">
		        	<a data-url="${ctxPathA }/system/codegen/tablecols" shieldParams="{'tableName':'${model.tableName }','tableComments':'${model.tableComments }','conn':'${conn }'}" class="shieldLoad cg_modelsetshow" data-target="#cg_modelSetDiv" 
		               viewWidth="800"><img src="${ctxPath }/images/icon/view.png" class="show c_p"/></a>
		        </td>
		    </tr>
		</c:forEach>
		<c:if test="${empty list }">
		    <!-- 无数据时展示，有数据时展示上面的列表 -->
		    <tr>
		        <td colspan="5" class="taCenter">没有表信息！</td>
		    </tr>
		</c:if>
		</table>
	</div>
	<script type="text/javascript">
	/* 保存原始html信息，用于搜索 */
	var tableE = ShieldJS.contentMainE.find(".tablesAllCodeGen");
	tableE.find("td").each(function(i, n) {
		$(this).data("html", $(this).html());
	});
	$(".cg_modelsetshow").unbind("clickCallback").bind("clickCallback", function(){cg_modelsetshowclickCallback();});
	</script>
